const user = {
  state: {
    USER_HEAD:'https://profile.csdnimg.cn/E/E/3/0_weixin_49230250',//用户头像
  },
  mutations: {
    // 设置头像
    CHANGE_USER_HEAD: (state, url) => {
      state.USER_HEAD = url
    },
    // 退出登录
    USER_LOGOUT:(state, router) => {
      router.push({ path: '/login', replace: true })
      console.log('退出登录,逻辑根据情况添加')
    },
  },
  actions: {

  }
}

export default user